package com.zzyl.mapper;


import com.zzyl.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * (Member)表数据库访问层
 *
 * @author makejava
 * @since 2024-09-10 11:35:12
 */
@Mapper
public interface MemberMapper {

    Member queryByOpenId(String openId);
    @Select("select id,name from member where id = #{id} ")
    Member queryById( Long id);


    /**
     * 新增数据
     *
     * @param member 实例对象
     * @return 影响行数
     */
    int insert(Member member);


    /**
     * 修改数据
     *
     * @param member 实例对象
     * @return 影响行数
     */
    int update(Member member);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 影响行数
     */
    int deleteById(Long id);

}


